package com.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Cart implements Serializable {
	private Map<Integer,Product> addMap=new HashMap<>();
	private Map<Integer,Product> deleteMap=new HashMap<>();
	private Double savePrice;
	private Double totalPrice;
	public Cart() {
		super();
	}
	public Cart(Map<Integer, Product> addMap, Map<Integer, Product> deleteMap,
			Double savePrice, Double totalPrice) {
		super();
		this.addMap = addMap;
		this.deleteMap = deleteMap;
		this.savePrice = savePrice;
		this.totalPrice = totalPrice;
	}
	public Map<Integer, Product> getAddMap() {
		return addMap;
	}
	public void setAddMap(Map<Integer, Product> addMap) {
		this.addMap = addMap;
	}
	public Map<Integer, Product> getDeleteMap() {
		return deleteMap;
	}
	public void setDeleteMap(Map<Integer, Product> deleteMap) {
		this.deleteMap = deleteMap;
	}
	public Double getSavePrice() {
		return savePrice;
	}
	public void setSavePrice(Double savePrice) {
		this.savePrice = savePrice;
	}
	public Double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	@Override
	public String toString() {
		return "Cart [addMap=" + addMap + ", deleteMap=" + deleteMap
				+ ", savePrice=" + savePrice + ", totalPrice=" + totalPrice
				+ "]";
	}
}
